class Solution(object):
    def sumOfDigits(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        value = min(nums)
        out = 0
        while value // 10 > 0:
            out += value % 10
            value = value // 10
        out += value
        return (out + 1) % 2


data = Solution()
nums = [99,77,33,66,55]
print(data.sumOfDigits(nums))
